#!/bin/sh

#删除容器
docker container stop zhanshop-yolo
docker container rm zhanshop-yolo

docker build -f ./Dockerfile-cpu -t zhanshop-yolo:v1 ./

cd ../
dirpath=$(cd $(dirname $0);pwd)

# 就这样就有了
docker run --name zhanshop-yolo -v $dirpath:/var/www -p 6600:6600/tcp --restart=always zhanshop-yolo:v1 &